<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>控制语句</title>
</head>
<body>
{#    {% if age <18 %}#}
{#    <p>你没有投票权限</p>#}
{#    {% elif age>=18 and age<70 %}#}
{#    <p>可以投票</p>#}
{#    {% else %}#}
{#    <p>请滚蛋</p>#}
{#    {% endif %}#}
{% for l in list %}
<p>姓名为：{{ l.name }}，年龄为：{{ l.age }}</p>
{% endfor %}
</body>
</html>